package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * vip分享对象 my_cyh_vip_share
 *
 * @author laowang
 * @date 2023-06-16
 */
@NoArgsConstructor
@Data
public class MyCyhVipShare implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 分享的用户
     */
    @Excel(name = "分享的用户")
    @ApiModelProperty(value = "分享的用户", required = false)
    @NotNull(message = "分享的用户不能为空")
    private Integer shareUserId;

    /**
     * 被分享的用户
     */
    @Excel(name = "被分享的用户")
    @ApiModelProperty(value = "被分享的用户", required = false)
    private Integer toUserId;

    @ApiModelProperty(value = "vip等级", required = false)
    private Integer vipLevel;



    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date endTime;
}
